package top.someapp.applib.webview;

import top.someapp.applib.Base;

/**
 * @author zwz
 * Created on 2019-10-15
 */
public interface WebViewCall {

    String JS_BRIDGE_OBJECT = "jsbridge";
    long VOID_JS_CALLBACK_ID = 0L;

    interface CallbackResult {

        void success(Object any);

        void error(String code, String reason, Object other);
    }

    interface JavascriptChannel {

        void postMessage(final Base.MethodCallInfo methodCall, final CallbackResult result);
    }
}
